#include
<kfbxtexture.h>
Definition at line 63 of file kfbxtexture.h.
Texture Properties |
|
enum | EUnifiedMappingType |
enum | ETextureUse6 |
enum | EWrapMode |
Wrap modes. More... |
|
enum | EBlendMode |
Blend modes. More... |
|
enum | EAlignMode |
Alignment modes. More... |
|
enum | ECoordinates |
Texture coordinates. More... |
|
enum | EAlphaSource |
Alpha sources. More... |
|
enum | EMappingType |
Texture mapping types. More... |
|
enum | EPlanarMappingNormal |
Planar mapping normal orientations. More... |
|
enum | EMaterialUse |
Material usages. More... |
|
enum | ETextureUse |
Texture usages. More... |
|
KFbxTypedProperty< ETextureUse6 > | TextureTypeUse |
KFbxTypedProperty< fbxDouble1 > | Alpha |
KFbxTypedProperty < EUnifiedMappingType > |
CurrentMappingType |
KFbxTypedProperty< EWrapMode > | WrapModeU |
KFbxTypedProperty< EWrapMode > | WrapModeV |
KFbxTypedProperty< fbxBool1 > | UVSwap |
KFbxTypedProperty< fbxDouble3 > | Translation |
KFbxTypedProperty< fbxDouble3 > | Rotation |
KFbxTypedProperty< fbxDouble3 > | Scaling |
KFbxTypedProperty< fbxDouble3 > | RotationPivot |
KFbxTypedProperty< fbxDouble3 > | ScalingPivot |
KFbxTypedProperty< fbxBool1 > | UseMaterial |
KFbxTypedProperty< fbxBool1 > | UseMipMap |
KFbxTypedProperty< EBlendMode > | CurrentTextureBlendMode |
KFbxTypedProperty< fbxString > | UVSet |
void | Reset () |
Reset the texture to its default values.
|
|
bool | SetFileName (char const *pName) |
Set the associated texture file. |
|
bool | SetRelativeFileName (char const *pName) |
Set the associated texture file. |
|
char const * | GetFileName () const |
Get the associated texture file path.
|
|
char const * | GetRelativeFileName () const |
Get the associated texture file path.
|
|
void | SetSwapUV (bool pSwapUV) |
Set the swap UV flag. |
|
bool | GetSwapUV () const |
Get the swap UV flag. |
|
void | SetAlphaSource (EAlphaSource pAlphaSource) |
Set alpha source. |
|
EAlphaSource | GetAlphaSource () const |
Get alpha source. |
|
void | SetCropping (int pLeft, int pTop, int pRight, int pBottom) |
Set cropping. |
|
int | GetCroppingLeft () const |
Get left cropping. |
|
int | GetCroppingTop () const |
Get top cropping. |
|
int | GetCroppingRight () const |
Get right cropping. |
|
int | GetCroppingBottom () const |
Get bottom cropping. |
|
void | SetMappingType (EMappingType pMappingType) |
Set mapping type. |
|
EMappingType | GetMappingType () const |
Get mapping type. |
|
void | SetPlanarMappingNormal (EPlanarMappingNormal pPlanarMappingNormal) |
Set planar mapping normal orientations.
|
|
EPlanarMappingNormal | GetPlanarMappingNormal () const |
Get planar mapping normal orientations.
|
|
void | SetMaterialUse (EMaterialUse pMaterialUse) |
Set material usage. |
|
EMaterialUse | GetMaterialUse () const |
Get material usage. |
|
void | SetTextureUse (ETextureUse pTextureUse) |
Set texture usage. |
|
ETextureUse | GetTextureUse () const |
Get texture usage. |
|
void | SetWrapMode (EWrapMode pWrapU, EWrapMode pWrapV) |
Set wrap mode in U and V. |
|
EWrapMode | GetWrapModeU () const |
Get wrap mode in U. |
|
EWrapMode | GetWrapModeV () const |
Get wrap mode in V. |
|
void | SetBlendMode (EBlendMode pBlendMode) |
Set blend mode. |
|
EBlendMode | GetBlendMode () const |
Get blend mode. |
|
Default Animation Values |
|
This set of functions provide direct access to
default animation values in the default take node. |
|
void | SetDefaultT (const KFbxVector4 &pT) |
Set default translation vector. |
|
KFbxVector4 & | GetDefaultT (KFbxVector4 &pT) const |
Get default translation vector. |
|
void | SetDefaultR (const KFbxVector4 &pR) |
Set default rotation vector. |
|
KFbxVector4 & | GetDefaultR (KFbxVector4 &pR) const |
Get default rotation vector. |
|
void | SetDefaultS (const KFbxVector4 &pS) |
Set default scale vector. |
|
KFbxVector4 & | GetDefaultS (KFbxVector4 &pS) const |
Get default scale vector. |
|
void | SetDefaultAlpha (double pAlpha) |
Set default alpha. |
|
double | GetDefaultAlpha () const |
Get default alpha. |
|
Obsolete Functions |
|
This set of functions is obsolete since animated
parameters are now supported.
U, V and W coordinates are mapped to X, Y and Z coordinates of
the default vectors found in section "Default Animation
Values". |
|
void | SetTranslation (double pU, double pV) |
Set translation. |
|
double | GetTranslationU () const |
Get translation applied to texture width.
|
|
double | GetTranslationV () const |
Get translation applied to texture height.
|
|
void | SetRotation (double pU, double pV, double pW=0.0) |
Set rotation. |
|
double | GetRotationU () const |
Get texture rotation around the U axis in
degrees. |
|
double | GetRotationV () const |
Get texture rotation around the V axis in
degrees. |
|
double | GetRotationW () const |
Get texture rotation around the W axis in
degrees. |
|
void | SetScale (double pU, double pV) |
Set scale. |
|
double | GetScaleU () const |
Get scale applied to texture width. |
|
double | GetScaleV () const |
Get scale applied to texture height.
|
enum EWrapMode |
enum EBlendMode |
Blend modes.
Reimplemented in KFbxLayeredTexture.
Definition at line 114 of file kfbxtexture.h.
enum EAlignMode |
Alignment modes.
Definition at line 129 of file kfbxtexture.h.
enum ECoordinates |
Texture coordinates.
Definition at line 142 of file kfbxtexture.h.
enum EAlphaSource |
enum EMappingType |
Texture mapping types.
Definition at line 294 of file kfbxtexture.h.
enum EPlanarMappingNormal |
Planar mapping normal orientations.
Definition at line 321 of file kfbxtexture.h.
enum EMaterialUse |
enum ETextureUse |
Texture usages.
Definition at line 366 of file kfbxtexture.h.
void Reset | ( | ) |
Reset the texture to its default values.
bool SetFileName | ( | char const * | pName | ) |
Set the associated texture file.
pName | The absolute path of the texture file. |
true
on success.bool SetRelativeFileName | ( | char const * | pName | ) |
Set the associated texture file.
pName | The relative path of the texture file. |
true
on success.char const* GetFileName | ( | ) | const |
Get the associated texture file path.
An empty string if KFbxTexture::SetFileName() has not been called before.
char const* GetRelativeFileName | ( | ) | const |
Get the associated texture file path.
An empty string if KFbxTexture::SetRelativeFileName() has not been called before.
void SetSwapUV | ( | bool | pSwapUV | ) |
Set the swap UV flag.
pSwapUV | Set to true if swap UV flag is enabled. |
bool GetSwapUV | ( | ) | const |
Get the swap UV flag.
true
if swap UV flag is enabled.void SetAlphaSource | ( | EAlphaSource | pAlphaSource | ) |
Set alpha source.
pAlphaSource | Alpha source identifier. |
EAlphaSource GetAlphaSource | ( | ) | const |
Get alpha source.
void SetCropping | ( | int | pLeft, | |
int | pTop, | |||
int | pRight, | |||
int | pBottom | |||
) |
Set cropping.
pLeft | Left cropping value. | |
pTop | Top cropping value. | |
pRight | Right cropping value. | |
pBottom | Bottom cropping value. |
int GetCroppingLeft | ( | ) | const |
Get left cropping.
int GetCroppingTop | ( | ) | const |
Get top cropping.
int GetCroppingRight | ( | ) | const |
Get right cropping.
int GetCroppingBottom | ( | ) | const |
Get bottom cropping.
void SetMappingType | ( | EMappingType | pMappingType | ) |
Set mapping type.
pMappingType | Mapping type identifier. |
EMappingType GetMappingType | ( | ) | const |
Get mapping type.
void SetPlanarMappingNormal | ( | EPlanarMappingNormal | pPlanarMappingNormal | ) |
Set planar mapping normal orientations.
pPlanarMappingNormal | Planar mapping normal orientation identifier. |
EPlanarMappingNormal GetPlanarMappingNormal | ( | ) | const |
Get planar mapping normal orientations.
void SetMaterialUse | ( | EMaterialUse | pMaterialUse | ) |
Set material usage.
pMaterialUse | Material usage identifier. |
EMaterialUse GetMaterialUse | ( | ) | const |
Get material usage.
void SetTextureUse | ( | ETextureUse | pTextureUse | ) |
Set texture usage.
pTextureUse | Texure usage identifier. |
ETextureUse GetTextureUse | ( | ) | const |
Get texture usage.
Set wrap mode in U and V.
pWrapU | Wrap mode identifier. | |
pWrapV | Wrap mode identifier. |
EWrapMode GetWrapModeU | ( | ) | const |
Get wrap mode in U.
EWrapMode GetWrapModeV | ( | ) | const |
Get wrap mode in V.
void SetBlendMode | ( | EBlendMode | pBlendMode | ) |
Set blend mode.
pBlendMode | Blend mode identifier. |
EBlendMode GetBlendMode | ( | ) | const |
Get blend mode.
void SetDefaultT | ( | const KFbxVector4 & | pT | ) | [inline] |
Set default translation vector.
pT | First element is the U translation applied to texture. A displacement of one unit is equal to the texture width after the scaling in U is applied. Second element is the V translation applied to texture. A displacement of one unit is equal to the texture height after the scaling in V is applied. Third and fourth elements do not have an effect on texture translation. |
Definition at line 432 of file kfbxtexture.h.
KFbxVector4& GetDefaultT | ( | KFbxVector4 & | pT | ) | const |
Get default translation vector.
pT | First element is the U translation applied to texture. A displacement of one unit is equal to the texture width after the scaling in U is applied. Second element is the V translation applied to texture. A displacement of one unit is equal to the texture height after the scaling in V is applied. Third and fourth elements do not have an effect on the texture. translation. |
void SetDefaultR | ( | const KFbxVector4 & | pR | ) | [inline] |
Set default rotation vector.
pR | First element is the texture rotation around the U axis in degrees. Second element is the texture rotation around the V axis in degrees. Third element is the texture rotation around the W axis in degrees. |
Definition at line 454 of file kfbxtexture.h.
KFbxVector4& GetDefaultR | ( | KFbxVector4 & | pR | ) | const |
Get default rotation vector.
pR | First element is the texture rotation around the U axis in degrees. Second element is the texture rotation around the V axis in degrees. Third element is the texture rotation around the W axis in degrees. |
void SetDefaultS | ( | const KFbxVector4 & | pS | ) | [inline] |
Set default scale vector.
pS | First element is scale applied to texture width. Second element is scale applied to texture height. Third and fourth elements do not have an effect on the texture. |
Definition at line 474 of file kfbxtexture.h.
KFbxVector4& GetDefaultS | ( | KFbxVector4 & | pS | ) | const |
Get default scale vector.
pS | First element is scale applied to texture width. Second element is scale applied to texture height. Third and fourth elements do not have an effect on the texture. |
void SetDefaultAlpha | ( | double | pAlpha | ) |
Set default alpha.
pAlpha | A value on a scale from 0 to 1, 0 meaning transparent. |
double GetDefaultAlpha | ( | ) | const |
Get default alpha.
void SetTranslation | ( | double | pU, | |
double | pV | |||
) |
Set translation.
pU | Horizontal translation applied to texture. A displacement of one unit is equal to the texture's width after the scaling in U is applied. | |
pV | Vertical translation applied to texture. A displacement of one unit is equal to the texture's height after the scaling in V is applied. |
double GetTranslationU | ( | ) | const |
Get translation applied to texture width.
double GetTranslationV | ( | ) | const |
Get translation applied to texture height.
void SetRotation | ( | double | pU, | |
double | pV, | |||
double | pW = 0.0 |
|||
) |
Set rotation.
pU | Texture rotation around the U axis in degrees. | |
pV | Texture rotation around the V axis in degrees. | |
pW | Texture rotation around the W axis in degrees. |
double GetRotationU | ( | ) | const |
Get texture rotation around the U axis in degrees.
double GetRotationV | ( | ) | const |
Get texture rotation around the V axis in degrees.
double GetRotationW | ( | ) | const |
Get texture rotation around the W axis in degrees.
void SetScale | ( | double | pU, | |
double | pV | |||
) |
Set scale.
pU | Scale applied to texture width. | |
pV | Scale applied to texture height. |
double GetScaleU | ( | ) | const |
Get scale applied to texture width.
double GetScaleV | ( | ) | const |
Get scale applied to texture height.